﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Component
{
    bool isDisposed = false;
    public bool IsDisposed
    {
        get
        {
            return isDisposed;
        }
    }
    public virtual void Dispose()
    {
        if (isDisposed)
            return;
        isDisposed = true;
    }
}

public class ComponentWithId : Component
{
    public long Id { get; set; }
}